<template>
  <div class="mainContainer">
    <div class="chatContainer">
      <friend-list @updateData="updateContactUserData"></friend-list>
      <dialogue :contactUserData="contactUserData"></dialogue>
    </div>
  </div>
</template>

<script>
import FriendList from "./friendList/index.vue";
import Dialogue from "./dialogue/index.vue";

export default {
  components: {
    FriendList,
    Dialogue,
  },
  data() {
    return {
      contactUserData: {},
    };
  },
  watch: {},
  created() {
  },
  mounted() {},
  methods: {
    updateContactUserData(contactUserData) {
      this.contactUserData = contactUserData;
    },
  },
};
</script>

<style lang="scss" scoped>
.mainContainer {
  height: 650px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.chatContainer {
  height: 90%;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  border: 1px solid hsl(0, 2%, 61%);
  box-sizing: border-box;
}
</style>